package com.example.activitysign.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.activitysign.entity.ActivityUserAward;
import com.example.activitysign.pages.PageResult;
import com.example.activitysign.pages.PageValidate;
import com.example.activitysign.validate.ActivityUserAwardCreateValidate;
import com.example.activitysign.validate.ActivityUserAwardSearchValidate;
import com.example.activitysign.validate.ActivityUserAwardUpdateValidate;
import com.example.activitysign.vo.activity.ActivityUserAwardDetailVo;
import com.example.activitysign.vo.activity.ActivityUserAwardListedVo;

/**
 * 用户奖品服务接口类
 *
 * @author fei
 */
public interface IActivityUserAwardService extends IService<ActivityUserAward> {

    /**
     * 用户奖品列表
     *
     * @param pageValidate   分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<ActivityUserAwardListedVo>
     * @author fei
     */
    PageResult<ActivityUserAwardListedVo> list(PageValidate pageValidate, ActivityUserAwardSearchValidate searchValidate);

    /**
     * 用户奖品详情
     *
     * @param id 主键ID
     * @return ActivityUserAwardDetailVo
     * @author fei
     */
    ActivityUserAwardDetailVo detail(Long id);

    /**
     * 用户奖品新增
     *
     * @param createValidate 参数
     * @author fei
     */
    void add(ActivityUserAwardCreateValidate createValidate);

    /**
     * 用户奖品编辑
     *
     * @param updateValidate 参数
     * @author fei
     */
    void edit(ActivityUserAwardUpdateValidate updateValidate);

    /**
     * 用户奖品删除
     *
     * @param id 主键ID
     * @author fei
     */
    void del(Long id);

}

